Skip to content

sbt-dotty: Make launchIDE work offline #5133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 21, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Sep 20, 2018

For each Code extension we require, we start by trying to install or
upgrade the extension. If this fails we check if an existing version of
the extension exists. If this also fails we throw an exception. This
ensures that we're always running the latest version of the extension
but that we can still work offline.

For each Code extension we require, we start by trying to install or
upgrade the extension. If this fails we check if an existing version of
the extension exists. If this also fails we throw an exception. This
ensures that we're always running the latest version of the extension
but that we can still work offline.
@smarter smarter requested a review from Duhemm September 20, 2018 20:29
0.2.4 has been released.
*/
def runProcess(cmd: Seq[String], wait: Boolean = false, directory: File = null): Unit = {
def runProcess(cmd: Seq[String], wait: Boolean = false, directory: Option[File] = None, outputCallback: Option[BufferedReader => Unit] = None): Unit = {
val pb = new ProcessBuilder(prepareCommand(cmd): _*).inheritIO()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need .inheritIO() anymore

We now explicitly set .redirect{Input,Output,Error}
@smarter smarter merged commit d1f7a11 into scala:master Sep 21, 2018
@allanrenucci allanrenucci deleted the launchIDE-no-connection branch September 21, 2018 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants